package com.tsd.core.annotation;

import com.tsd.core.datasource.DataSourceContextHolder;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author Luoyc
 * @Date 2018/12/11 16:35
 * @Version
 * @Description: 数据源
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface DataSource {
    String value() default DataSourceContextHolder.DEFAULT_ACCOUNT_SET_SID;
}
